package com.example.managerback.service;

import com.example.managerback.entity.Employee;
import jakarta.annotation.Resource;
import com.example.managerback.mapper.EmployeeMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeService {
    //
    @Resource
    EmployeeMapper employeeMapper;

    public List<Employee> setAll(){
       return employeeMapper.seletAll();
    }

    public List<Employee> setById(Integer id) {
        return employeeMapper.selectById(id);

    }
}
